<template>
	<view class="content">
		<view class="header">
			<view class="logoff">退出登录</view>
			<view class="userInfo">
				<img class="avatar" src="/static/1.png" alt="" />
				<view class="admin">
					<div>
						<span>admin</span>
						<span style="
                margin-left: 15rpx;
                font-size: 25rpx;
                color: red;
                font-wight: 1400rpx;
                border: 4rpx solid #f00;
              ">超级管理员</span>
					</div>
					<text class="rolltime">共登录15次,上次2024-04-03-25 12:34:43</text>
				</view>
			</view>
		</view>
		<view class="middle">
			<view v-for="(item, index) in 6" :key="index">
				<view class="infomation">
					<text>51</text>
					<text>用户数</text>
				</view>
			</view>
		</view>
		<!-- 功能管理 -->
			<view>
				<uni-card :is-shadow="false" is-full>
					<uni-icons type="contact" size="20"></uni-icons>
					<text style="font-size: 40rpx;">功能管理</text>
					
				</uni-card>
			</view>
		<view class="moduleItems">
			<view class="item" v-for="(item,index) in 6" :key="index">
				<view calss="itemDetail" @click="goUser">
					<view><img src="/static/1.png" alt="" style="width:50rpx;height:50rpx;margin-top: 50rpx;"></view>
					<text>用户管理</text>
				</view>
			</view>
		</view>
		<view class="bottom">
			<view>
				<uni-card :is-shadow="false" is-full>
					<uni-icons type="contact" size="20"></uni-icons>
					<text class="uni-h6">编辑-关于我们</text>
					<view style="float:right"><uni-icons type="right" size="20"></uni-icons></view>
				</uni-card>
			</view>
			<view>
				<uni-card :is-shadow="false" is-full>
					<uni-icons type="contact" size="20" ></uni-icons>
					<text class="uni-h6">小程序二维码</text>
					<view style="float:right"><uni-icons type="right" size="20"></uni-icons></view>
				</uni-card>
			</view>
			<view>
				<uni-card :is-shadow="false" is-full>
					<uni-icons type="contact" size="20"></uni-icons>
					<text class="uni-h6">系统管理员管理</text>
					<view style="float:right"><uni-icons type="right" size="20"></uni-icons></view>
				</uni-card>
			</view>
			<view>
				<uni-card :is-shadow="false" is-full>
					<uni-icons type="contact" size="20"></uni-icons>
					<text class="uni-h6">修改我的密码</text>
					<view style="float:right"><uni-icons type="right" size="20"></uni-icons></view>
				</uni-card>
			</view>
		</view>
	</view>


</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
		goUser(){
			const satoken=uni.getStorageSync('satoken');
			if(satoken){
				uni.navigateTo({
					url: '/pages/user/user'
				});
			}
			else{
				uni.navigateTo({
					url:'/pages/login/login'
				})
			}
		}
		}
	}
</script>

<style>
	.content {
		width: 100%;
	}

	.header {
		width: 100%;
		background-color: #add8e6;
		height: 220rpx;
	}

	.header .avatar {
		width: 100rpx;
		height: 100rpx;
		margin-left: 30rpx;
	}

	.userInfo {
		margin-top: 20rpx;
		display: flex;
		justify-content: flex-start;
	}

	.logoff {
		margin-left: 590rpx;
	}

	.admin {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		margin-left: 50rpx;
		font-weight: 1500rpx;
		font-size: 45rpx;
	}

	.admin .rolltime {
		font-size: 20rpx;
		font-weight: 400rpx;
	}

	.middle {
		display: flex;
		width: 100%;
	}

	.middle .infomation {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 122rpx;
		border: 1rpx solid #ccc;
		text-align: center;
		height: 100rpx;
	}

	.moduleItems {
		width: 100%;
		display: flex;
		flex-wrap: wrap;

	}

	.moduleItems .item {
		width: 246rpx;
		border: 2rpx solid #ccc;
		height: 200rpx;
		text-align: center;


	}

	.manageItem {
		background: #add8e6;
		height: 100rpx;
		width: 100%;
	}

	.itemDetail {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;

	}
	.uni-h6{
		
	}
</style>